﻿using csLTDMC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;

namespace Kimd.DMCEtherCard
{
    public class CardInfo
    {
        /// <summary>
        /// 从站总数
        /// </summary>
        public int TotalSlaves { get; set; }
        /// <summary>
        /// 轴总数
        /// </summary>
        public int TotalAxises { get; set; }
        /// <summary>
        /// 总线卡本地DI输入数目
        /// </summary>
        public int LocalIOInCount { get; set; }
        /// <summary>
        /// 总线卡本地DI输出数目
        /// </summary>
        public int LocalIOOutCount { get; set; }
        /// <summary>
        /// 所有DI输入数目
        /// </summary>
        public int TotalIOInCount { get; set; }
        /// <summary>
        /// 所有DO输出数目
        /// </summary>
        public int TotalIOOutCount { get; set; }
        /// <summary>
        ///  获取总线AD
        /// </summary>
        public int TotalADInCount { get; set; }
        /// <summary>
        ///   获取总线DA数
        /// </summary>
        public int TotalDAOutCount { get; set; }
        /// <summary>
        /// 总线状态
        /// </summary>
        public string StatusStr { get; set; } = string.Empty;
        /// <summary>
        /// 卡的类型
        /// </summary>
        public CardTypeEnum CardType { get; set; } = CardTypeEnum.PulseCard;

    }
    public enum CardTypeEnum
    {
        PulseCard,
        EtherCard
    }
    public enum IOModuleType
    {
        Di8,
        Do8,
        Dio8,
        Di16,
        Do16,
        Dio16,
        Di32,
        Do32,
        Dio32,
        Self
    }
}
